/*
 * @Author: wangyongcun
 * @Date: 2023-02-21 19:53:05
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2024-05-04 08:31:16
 * @Description: 登录相关接口定义和函数集合
 */
import { Request } from "@/utils/axios";

/**
 * @description: 登录
 * @param {*} params
 * @return {*}
 */
export const loginRequest = async (params) => {
  return Request.post("/teaching-organization/user/login", params, {
    headers: {
      autoTip: "fail",
    },
  });
};

/**
 * @description: 退出登录
 * @param {*} params
 * @return {*}
 */
export const loginOutRequest = async (params) => {
  return Request.post("/loginOut", params, {
    headers: {
      autoTip: "fail",
    },
  });
};
